<?php

namespace Yearnfar\Bundle\CmsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * h5game
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class h5game
{
    /**
     * @ORM\ManyToOne(targetEntity="term", inversedBy="posts")
     * @ORM\JoinColumn(name="tid", referencedColumnName="id")
     */
    private $term;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="tid", type="integer")
     */
    private $tid;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=200)
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="link", type="string", length=255)
     */
    private $link;

    /**
     * @var string
     *
     * @ORM\Column(name="cover", type="string", length=255)
     */
    private $cover;

    /**
     * @var string
     *
     * @ORM\Column(name="intro", type="text")
     */
    private $intro;

    /**
     * @var string
     *
     * @ORM\Column(name="play", type="text")
     */
    private $play;

    /**
     * @var smallint
     *
     * @ORM\Column(name="score", type="smallint")
     */
    private $score;

    /**
     * @var array
     *
     * @ORM\Column(name="print_screen", type="json_array")
     */
    private $printScreen;

    /**
     * @var boolean
     *
     * @ORM\Column(name="publish", type="boolean")
     */
    private $publish;

    /**
     * @var integer
     *
     * @ORM\Column(name="logtime", type="integer")
     */
    private $logtime;

    /**
     * @var integer
     *
     * @ORM\Column(name="deltime", type="integer")
     */
    private $deltime;

    /**
     * @param term $term
     * @return post
     */
    public function setTerm(term $term)
    {
        $this->term = $term;
        return $this;
    }

    /**
     * get term
     *
     * @return mixed
     */
    public function getTerm()
    {
        return $this->term;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set tid
     *
     * @param integer $tid
     * @return h5game
     */
    public function setTid($tid)
    {
        $this->tid = $tid;

        return $this;
    }

    /**
     * Get tid
     *
     * @return integer 
     */
    public function getTid()
    {
        return $this->tid;
    }

    /**
     * Set author
     *
     * @param string $author
     * @return h5game
     */
    public function setAuthor($author)
    {
        $this->author = $author;

        return $this;
    }

    /**
     * Get author
     *
     * @return string 
     */
    public function getAuthor()
    {
        return $this->author;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return h5game
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set link
     *
     * @param string $link
     * @return h5game
     */
    public function setLink($link)
    {
        $this->link = $link;

        return $this;
    }

    /**
     * Get link
     *
     * @return string
     */
    public function getLink()
    {
        return $this->link;
    }

    /**
     * Set cover
     *
     * @param string $cover
     * @return h5game
     */
    public function setCover($cover)
    {
        $this->cover = $cover;

        return $this;
    }

    /**
     * Get cover
     *
     * @return string 
     */
    public function getCover()
    {
        return $this->cover;
    }

    /**
     * Set intro
     *
     * @param string $intro
     * @return h5game
     */
    public function setIntro($intro)
    {
        $this->intro = $intro;

        return $this;
    }

    /**
     * Get intro
     *
     * @return string 
     */
    public function getIntro()
    {
        return $this->intro;
    }

    /**
     * Set play
     *
     * @param string $play
     * @return h5game
     */
    public function setPlay($play)
    {
        $this->play = $play;

        return $this;
    }

    /**
     * Get play
     *
     * @return string
     */
    public function getPlay()
    {
        return $this->play;
    }

    /**
     * Set score
     *
     * @param smallint $score
     * @return h5game
     */
    public function setScore($score)
    {
        $this->score = $score;

        return $this;
    }

    /**
     * Get score
     *
     * @return smallint
     */
    public function getScore()
    {
        return $this->score;
    }

    /**
     * Set printScreen
     *
     * @param array $printScreen
     * @return h5game
     */
    public function setPrintScreen($printScreen)
    {
        $this->printScreen = $printScreen;

        return $this;
    }

    /**
     * Get printScreen
     *
     * @return array
     */
    public function getPrintScreen()
    {
        return $this->printScreen;
    }

    /**
     * Set publish
     *
     * @param boolean $publish
     * @return h5game
     */
    public function setPublish($publish)
    {
        $this->publish = $publish;

        return $this;
    }

    /**
     * Get publish
     *
     * @return boolean 
     */
    public function getPublish()
    {
        return $this->publish;
    }

    /**
     * Set logtime
     *
     * @param integer $logtime
     * @return h5game
     */
    public function setLogtime($logtime)
    {
        $this->logtime = $logtime;

        return $this;
    }

    /**
     * Get logtime
     *
     * @return integer 
     */
    public function getLogtime()
    {
        return $this->logtime;
    }

    /**
     * Set deltime
     *
     * @param integer $deltime
     * @return h5game
     */
    public function setDeltime($deltime)
    {
        $this->deltime = $deltime;

        return $this;
    }

    /**
     * Get deltime
     *
     * @return integer 
     */
    public function getDeltime()
    {
        return $this->deltime;
    }
}
